#include <stdio.h>
#include <stdlib.h>
#define DataType int
#define MAXLENGTH 20
#include "conjuction.h"


//--------A Polish Expression Calculator---------------------------------------//    
int calculatePolish(char *polish, int result){
		int continuity=0;
		PSeqStack ps_digits=createEmptyStack_seq(MAXLENGTH);
		int i;
		char temp; 
		int dtemp=0; 
		
		for(i=0;polish[i]!='\0';i++){
		temp=polish[i];
			
//--------Condition: Blank-------------------------------------------------// 
			    if (temp==' '){
			    	continuity=0;
				continuity=0;      
           }
//--------Condition: Digit-------------------------------------------------//           
          else if (temp>='0'&&temp<='9'){
          	if(continuity==1){
          	dtemp=dtemp*10+temp-'0';
          }
          	else {
          	dtemp=temp-'0';	
          	}
          	continuity=1;
          }
			}
	}
